<template>
  <Container class="order-article">
    <div class="container-header title title-center" slot="header">公告
      <Button size="large" class="fl btn-back"  icon="ios-arrow-back" @click="$router.back()">返回</Button>
    </div>
    <Card style="height: 100%">
      <div class="title">{{title}}</div>
      <div class="releaseTime">{{releaseTime}}</div>
      <div class="content" v-html="content"></div>
    </Card>
    <!-- <Loader :status="list.status" @refresh="onSearchBtnClick"></Loader> -->
  </Container>
</template>
<script>

export default {
  name: 'OrderArticle',
  data () {
    return {
      categoryId: this.$route.query.categoryId || '',
      title: '',
      content: '',
      releaseTime: ''
    }
  },
  mounted () {
    this.getData()
  },
  methods: {
      getData() {
        let param = {
          categoryId: this.categoryId
        }
        this.$ajaxPost('/article/findLastArticleByCategoryId', param).then((data) => {
          this.title = data.title,
          this.content = data.content,
          this.releaseTime = data.releaseTime   
        }).catch(() => {
          
        })
      }
  }
}
</script>